Page({
  data:{
    nbFrontColor: '#000000',
    nbBackgroundColor: '#ffffff',
    types:[],
  /* list:{
      errno:0,
      msg:"",
      data:[{
        title:"java教程",
        icon:"https://static.javatpoint.com/tutorial/apache-solr/images/apache-solr-home.png",
        link:"https://www.javatpoint.com/css-tutorial"
      },
     {
       title:"MongoDB",
       icon:"https://static.javatpoint.com/images/logo/mongodb.png",
       link:"https://www.javatpoint.com/css-tutorial" 
     },
   {
     title:"Gimp",
        icon:"https://static.javatpoint.com/tutorial/gimp/images/gimp-home.png",
        link:"https://www.javatpoint.com/css-tutorial"
   },
   {
    title:"java教程",
    icon:"https://static.javatpoint.com/tutorial/apache-solr/images/apache-solr-home.png",
    link:"https://www.javatpoint.com/css-tutorial"
  },
 {
   title:"MongoDB",
   icon:"https://static.javatpoint.com/images/logo/mongodb.png",
   link:"https://www.javatpoint.com/css-tutorial" 
 },
{
 title:"Gimp",
    icon:"https://static.javatpoint.com/tutorial/gimp/images/gimp-home.png",
    link:"https://www.javatpoint.com/css-tutorial"
},
 ]
    }*/
  },

  onLoad() {
    this.setData({
      nbTitle: '新标题',
      nbLoading: true,
      nbFrontColor: '#ffffff',
      nbBackgroundColor: '#000000',
    })
    var that = this
    wx.request({
      url: 'https://sue_ribaj.gitee.io/text/type.json?111',
      success: function (res) {
        that.setData({
          types: res.data
        })
      }
    })
  }
})
